#include "myComplexNumber.h"


myComplexNumber::myComplexNumber(void)
{
	real = 0;
	img = 0;
}
myComplexNumber::myComplexNumber(double re, double im)
{
	real = re;
	img = im;
}
myComplexNumber::~myComplexNumber(void)
{

}

void myComplexNumber::setValue(const double& re, const double& im)
{
	this->real = re;
	this->img = im;
}
void myComplexNumber::setReal(const double& re)
{
	this->real = re;
}
void myComplexNumber::setImg(const double& im)
{
	this->img = im;
}
void myComplexNumber::printValue()
{
	std::cout << "real:" << this->real << ";img:" << this->img << std::endl;
}
double myComplexNumber::getReal()
{
	return this->real;
}
double myComplexNumber::getImag()
{
	return this->img;
}
